"use client";
import TaskForm from "@/app/(home)/new/task-form";
// import TaskForm from "@/app/(home)/new/task-form";
import { trpc } from "@/trpc/client";
import { useSearchParams } from "next/navigation";

interface taskIdProps {
  taskId?: any;
}
export default function TaskEditPageView({ taskId }: taskIdProps) {
  console.log(taskId, "taskId");
  const [task] = trpc.tasks.getOne.useSuspenseQuery({ id: Number(taskId) });
  return (
    <div className="flex justify-center items-center h-screen">
      <TaskForm task={task}></TaskForm>
    </div>
  )
}